package com.jjx.trainingapi.service.impl;

import com.jjx.trainingapi.entity.vo.SectionVo;
import com.jjx.trainingapi.util.LoginManager;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjx.trainingapi.entity.po.Section;
import com.jjx.trainingapi.mapper.SectionMapper;
import com.jjx.trainingapi.service.SectionService;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Service
public class SectionServiceImpl extends ServiceImpl<SectionMapper, Section> implements SectionService {

    /**
     * 查询课程下的试卷
     *
     * @param section
     * @return
     */
    @Override
    public List<SectionVo> questionList(Section section) {
        return baseMapper.questionList(section, LoginManager.getUserId());
    }
}

